package com.shop.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.shop.mapper.Ums_Member_Receive_Address_Mapper;
import com.shop.pojo.ums.Ums_Member_Receive_Address;
import com.shop.service.Ums_Member_Receive_Address_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Ums_Member_Receive_Address_ServiceImpl implements Ums_Member_Receive_Address_Service {

    @Autowired
    Ums_Member_Receive_Address_Mapper ums_member_receive_address_mapper;

    /**
     * 根据用户的ID查询用户的地址
     * @param member_id
     * @return
     */
    @Override
    public List<Ums_Member_Receive_Address> getMemberIdAddress(Long member_id) {

        return ums_member_receive_address_mapper.selectList(new QueryWrapper<Ums_Member_Receive_Address>().eq("member_id",member_id));
    }
}
